publicize GetDllPath + option to use latest DLL + exec and eval accept utf8 code#54
publicize GetDllPath + option to use latest DLL + exec and eval accept utf8 code#54bentheiii wants to merge 2 commits intolmbelo:masterfrom
Conversation
|
Have a look at PythonVersions.pas. It does all that and more. |
|
Noted for the first two points, I don't think it can handle the the third (non-ascii source code). If it doesn't I will close and re-open with only the utf-8 fix. |
|
You can always encode the text your self before passing it to python. This is what PyScripter does. The thing is that Python 2.x expects ansi and Python 3.x expects utf8. Maybe I can add a function overload that expects utf8. But it would need to be checked for Delphi/FPC compatibility. |
|
Superceded by #59 |
|
Please advise how to set python4delphi to choose the newest (and not oldest) available python dll (as currently if two versions are available at the same folder you choose the older one). |
|
Have a look at PythonVersions. See also Demo34 |
3 changes: